import axios from "@/libs/api.request"
let baseUrl = "http://192.168.1.68:18082"

export const getPushList = (data) => {
    return axios.request({
        url: baseUrl + "/user/info/get_page",
        params: data,
        method: "get"
    });
}


/**
 *  {name} 撤销通知
 *  {params} infoId
 *  {methods} delete
 * 
*/
export const cancelPush = (data) => {
    return axios.request({
        url: baseUrl + "/user/info",
        params: data,
        method: "delete"
    });
}


/**
 *  {name} 新增推送
 *  {params} 省略
 *  {methods} post
 * 
 */
export const addPush = (data) => {
    return axios.request({
        url: baseUrl + "/user/info",
        data: data,
        method: "post"
    });
}
